package net.Reality.Android.Ant;

import java.util.Vector;

import android.graphics.Bitmap;

public class AntObject 
{
	Bitmap bitmap;
	Bitmap objectIcon;
	String displayName;
	String workName;
	
	AntObject horizontal;
	AntObject vertical;
	AntObject angular;
	Vector<AntObject> sizes = new Vector<AntObject>();
	
	public AntObject(Bitmap bitmap, Bitmap icon, String displayName, String workName)
	{
		this.bitmap = bitmap;
		objectIcon = icon;
		this.displayName = displayName;
		this.workName = workName;
	}
	
	public void setHorizontal(Bitmap bitmap, Bitmap icon, String displayName, String workName)
	{
		horizontal = new AntObject(bitmap, icon, displayName, workName);
	}
	
	public void setVertical(Bitmap bitmap, Bitmap icon, String displayName, String workName)
	{
		vertical = new AntObject(bitmap, icon, displayName, workName);
	}
	
	public void setAngular(Bitmap bitmap, Bitmap icon, String displayName, String workName)
	{
		angular = new AntObject(bitmap, icon, displayName, workName);
	}
	
	public Bitmap getBitmap()
	{
		return bitmap;
	}
	
	public Bitmap getIcon()
	{
		return objectIcon;
	}
	
	public String getDisplayName()
	{
		return displayName;
	}
	
	public String getWorkName()
	{
		return workName;
	}
	
	public AntObject getHorizontal()
	{
		return horizontal;
	}
	
	public AntObject getVertical()
	{
		return vertical;
	}
	
	public AntObject getAngular()
	{
		return angular;
	}
	
	public Vector<AntObject> getSizes()
	{
		return sizes;
	}
	
	public AntObject getFromTable(int table)
	{
			switch(table)
			{
				case 0: return horizontal;
				case 1: return vertical;
				case 2: return angular;
			}
		
		return null;
	}
}
